//
//  NSArray+EX.h
//  BaiduTravel
//
//  Created by LiZujian on 13-1-26.
//
//

#import <Foundation/Foundation.h>

#undef	SAFE_RELEASE_SUBVIEW
#define SAFE_RELEASE_SUBVIEW( __x ) \
{ \
[__x removeFromSuperview]; \
[(__x) release]; \
__x = nil; \
}

@interface NSArray (EX)
- (NSArray *)head:(NSUInteger)count;
- (NSArray *)tail:(NSUInteger)count;
- (id)safeObjectAtIndex:(NSUInteger)index;
@end

@interface NSMutableArray(EX)
//- (id)safeObjectAtIndex:(NSUInteger)index;
@end
